package NGUYENXUANTUNG.EXCERCISE.BAI1LV2;

public class MODELS {
	public double Tringle(double a, double b, double c, short opt){
		double result = 0;
		
		switch (opt) {
		case 1: result = a + b +c; break;
		case 2: result = Math.sqrt((a+b+c)*(b+c)*(c+a)*(a+b)); break;
		}
		return result;
	}
}
